import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [{
        path: '/login',
        // redirect: '/dashboard'
        component: () => import("../components/page/Login.vue")
    },
    {
        path: '/',
        component: () => import( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
        redirect: '/dashboard',
        meta: {},
        children: [{
            path: '/dashboard',

            component: () => import( /* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
            meta: {
                title: '首页'
            }
        },
        {
            path: '/resumeList',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/personal/index.vue'),
            meta: {
                title: '简历列表'
            }
        },
        {
            path: '/resumeDetail',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/personal/detail.vue'),
            meta: {
                title: '简历详情'
            }
        },
        {
            path: '/unemployed',
            component: () => import(/* webpackChunkName: "form" */ '../components/page/personal/unemployed.vue'),
            meta: { title: '失业人员登记列表' }
        },
        {
            path: '/unemployedadd',
            name: '/unemployedadd',
            component: () => import(/* webpackChunkName: "form" */ '../components/page/personal/unemployedadd.vue'),
            meta: { title: '失业人员登记添加/编辑' }
        },
        {
            path: '/unemployedDetail',
            component: () => import(/* webpackChunkName: "form" */ '../components/page/personal/unemployedDetail.vue'),
            meta: { title: '失业人员简历详情' }
        },
        {
            path: '/employmentRegistrationList',
            component: () => import(/* webpackChunkName: "form" */ '../components/page/personal/employmentRegistrationList.vue'),
            meta: { title: '就业人员统计列表' }
        },
        {
            path: '/employmentRegistrationListadd',
            component: () => import(/* webpackChunkName: "form" */ '../components/page/personal/employmentRegistrationListadd.vue'),
            meta: { title: '就业人员统计添加/编辑' }
        },
        {
            path: '/companyList',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/companyList/index.vue'),
            meta: {
                title: '企业列表'
            }
        },
        {
            path: '/legalPerson',
            component: () => import( /* webpackChunkName: "legalPerson" */ '../components/page/enterprise/companyList/legalPerson.vue'),
            meta: {
                title: '法人库信息'
            }
        },
        {
            path: '/companyAccount',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/companyList/accountList.vue'),
            meta: {
                title: '企业账号列表'
            }
        },
        {
            path: '/corporateStyle',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/companyList/corporateStyle.vue'),
            meta: {
                title: '企业风采'
            }
        },
        {
            path: '/jobList',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/jobList/index.vue'),
            meta: {
                title: '职位列表'
            }
        },
        {
            path: '/addPosition',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/jobList/addPosition.vue'),
            meta: {
                title: '代发职位'
            }
        },
        {
            path: '/authInfo',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/companyList/authInfo.vue'),
            meta: {
                title: '认证信息'
            }
        },
        {
            path: '/enterpriseAlter',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/companyList/enterpriseAlter.vue'),
            meta: {
                title: '修改企业信息'
            }
        },
        {
            path: '/jobAlter',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/enterprise/jobList/jobAlter.vue'),
            meta: {
                title: '修改职位信息'
            }
        },
        {
            path: '/advertisement',
            component: () => import( /* webpackChunkName: "upload" */ '../components/page/content/Advertisement.vue'),
            meta: {
                title: '广告列表'
            }
        },
        {
            path: '/addAdvertisement',
            component: () => import( /* webpackChunkName: "addAdvertisement" */ '../components/page/content/addAdvertisement.vue'),
            meta: {
                title: '广告新增/修改'
            }
        },
        {
            path: '/news',
            component: () => import( /* webpackChunkName: "news" */ '../components/page/content/news.vue'),
            meta: {
                title: '新闻管理'
            }
        },
        {
            path: '/addEditNews',
            component: () => import( /* webpackChunkName: "upload" */ '../components/page/content/addEditNews.vue'),
            meta: {
                title: '新闻新增/修改'
            }
        },
        {
            path: '/JobFairList',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/JobFairList.vue'),
            meta: {
                title: '招聘会列表'
            }
        },
        {
            path: '/addJobFair',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/addJobFair.vue'),
            meta: {
                title: '添加招聘信息'
            }
        },
        {
            path: '/editJobFair',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/editJobFair.vue'),
            meta: {
                title: '修改招聘信息'
            }
        },
        {
            path: '/participating',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/participating.vue'),
            meta: {
                title: '参会企业'
            }
        },
        {
            path: '/addenterprise',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/addenterprise.vue'),
            meta: {
                title: '添加企业'
            }
        },
        {
            path: '/editenterprise',
            component: () => import( /* webpackChunkName: "form" */ '../components/page/JobFair/editenterprise.vue'),
            meta: {
                title: '修改企业'
            }
        },
        {
            // 国际化组件
            path: '/i18n',
            component: () => import( /* webpackChunkName: "i18n" */ '../components/page/I18n.vue'),
            meta: {
                title: '国际化'
            }
        },
        // {
        //     // 权限页面
        //     path: '/permission',
        //     component: () => import(/* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
        //     meta: { title: '权限测试', permission: true }
        // },
        {
            // 用户管理
            path: '/account',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/manage/account.vue'),
            meta: {
                title: '账号管理'
            }
        },
        {
            // 角色管理
            path: '/role',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/manage/role.vue'),
            meta: {
                title: '角色管理'
            }
        },
        {
            // 权限页面
            path: '/log',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/manage/log.vue'),
            meta: {
                title: '系统日志'
            }
        },
        {
            // 权限页面
            path: '/enterpriseData',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/assetsDataCenter/enterpriseData.vue'),
            meta: {
                title: '企业数据'
            }
        },
        {
            // 权限页面
            path: '/siteAnnouncement',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/manage/siteAnnouncement.vue'),
            meta: {
                title: '站点公告'
            }
        },
        {

            path: '/positionComplaint',
            component: () => import( /* webpackChunkName: "permission" */ '../components/page/manage/positionComplaintManagement.vue'),
            meta: {
                title: '职位投诉管理'
            }
        },
        {

            //  敏感词设置
            path: '/sensitiveWord',
            component: () => import( /* webpackChunkName: "sensitiveWord" */ '../components/page/manage/sensitiveWord.vue'),
            meta: {
                title: '敏感词设置'
            }
        },
        {
            //  简历投诉管理
            path: '/resumeComplaint',
            component: () => import( /* webpackChunkName: "resumeComplaint" */ '../components/page/manage/resumeComplaint.vue'),
            meta: {
                title: '简历投诉管理'
            }
        },
        // 栏目管理
        {
            path: '/columnManagement',
            component: () => import( /* webpackChunkName: "columnManagement" */ '../components/page/content/columnManagement.vue'),
            meta: {
                title: '栏目管理'
            }
        },
        // 添加栏目
        {
            path: '/modifyColumn',
            component: () => import( /* webpackChunkName: "modifyColumn" */ '../components/page/content/modifyColumn.vue'),
            meta: {
                title: '添加栏目'
            }
        },
        {
            path: '/behaviorStatisticsUsers',
            component: () => import( /* webpackChunkName: "behaviorStatisticsUsers" */ '../components/page/DataCenter/behaviorStatisticsUsers.vue'),
            meta: {
                titgitle: '求职用户行为量统计示例'
            }
        },
        {
            path: '/behaviorStatisticsUser',
            component: () => import( /* webpackChunkName: "behaviorStatisticsUsers" */ '../components/page/DataCenter/TalentStatistics/behaviorStatisticsUser.vue'),
            meta: {
                title: '求职用户行为量统计'
            }
        },
        // 周六新增 已上线
        {
            path: '/statisticsUserAnalysis',
            component: () => import( /* webpackChunkName: "statisticsUserAnalysis" */ '../components/page/DataCenter/TalentStatistics/statisticsUserAnalysis.vue'),
            meta: {
                title: '求职用户统计分析'
            }
        },
        {
            path: '/enterpriseQuantityStatistics',
            component: () => import( /* webpackChunkName: "enterpriseQuantityStatistics" */ '../components/page/DataCenter/EnterpriseDataStatistics/enterpriseQuantityStatistics.vue'),
            meta: {
                title: '企业数量统计'
            }
        },
        {
            path: '/enterpriseGrowth',
            component: () => import( /* webpackChunkName: "enterpriseQuantityStatistics" */ '../components/page/DataCenter/EnterpriseDataStatistics/enterpriseGrowth.vue'),
            meta: {
                title: '企业增长统计'
            }
        },
        {
            path: '/recruitmentStatistics',
            component: () => import( /* webpackChunkName: "recruitmentStatistics" */ '../components/page/DataCenter/EnterpriseDataStatistics/recruitmentStatistics.vue'),
            meta: {
                title: '招聘统计'
            }
        },
        {
            path: '/recruitmentEffect',
            component: () => import( /* webpackChunkName: "recruitmentEffect" */ '../components/page/DataCenter/recruitmentEffect.vue'),
            meta: {
                title: '招聘效果分析'
            }
        },
        // 人才数据统计 - 求职效果分析
        {
            path: '/jobAnalysis',
            component: () => import( /* webpackChunkName: "jobAnalysis" */ '../components/page/DataCenter/TalentStatistics/jobAnalysis.vue'),
            meta: {
                title: '求职效果分析'
            }
        },
        // 人才数据统计 - 人才构成统计
        {
            path: '/statisticsOfTalentComposition',
            component: () => import( /* webpackChunkName: "statisticsOfTalentComposition" */ '../components/page/DataCenter/TalentStatistics/statisticsOfTalentComposition.vue'),
            meta: {
                title: '人才构成统计'
            }
        },
        {
            path: '/resumeNumber',
            component: () => import( /* webpackChunkName: "statisticsOfTalentComposition" */ '../components/page/DataCenter/TalentStatistics/resumeNumber.vue'),
            meta: {
                title: '简历数量统计'
            }
        },
        {
            path: '/resumeGrowth',
            component: () => import( /* webpackChunkName: "statisticsOfTalentComposition" */ '../components/page/DataCenter/TalentStatistics/resumeGrowth.vue'),
            meta: {
                title: '简历增长统计'
            }
        }
            // {
            //     path: '/404',
            //     component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
            //     meta: { title: '404' }
            // },
            // {
            //     path: '/403',
            //     component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
            //     meta: { title: '403' }
            // }
        ]
    },
        // {
        //     path: '/login',
        //     component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
        //     meta: { title: '登录' }
        // },
        // {
        //     path: '*',
        //     redirect: '/404'
        // }

    ]
});